package TransactionImplementation

import (
	"PaySalary/AbstractTransactions"
	"PaySalary/Model"
	"PaySalary/ModelImplementation"
)

type AddHourlyEmployee struct {
	AbstractTransactions.AddEmployeeTransaction
	itsHourlyRate float64
}

func (he *AddHourlyEmployee)NewAddHourlyEmployee(empid int, name string, address string, hourlyRate float64)  {
	he.AddEmployeeTransaction.NewAddEmployeeTransaction(empid,name,address)
	he.itsHourlyRate = hourlyRate
}

func (he *AddHourlyEmployee)GetClassification() Model.PaymentClassification {
	return ModelImplementation.NewHourlyClassification(he.itsHourlyRate)
}

func (he *AddHourlyEmployee)GetSchedule() Model.PaymentSchedule {
	return ModelImplementation.WeeklySchedule{}
}